package com.frxuexi.mdm2204.view

import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.viewinterop.AndroidView
import androidx.navigation.NavHostController
import com.frxuexi.mdm2204.myview.HongbaoView
import com.frxuexi.mdm2204.myview.MyProgressView
import com.frxuexi.mdm2204.myview.MyView
import com.frxuexi.mdm2204.myview.MyZanView

lateinit var hb: HongbaoView
//lateinit var progressView: MyProgressView
@Composable
fun MessagePage(navHostController: NavHostController) {

//    Text(text = "消息页面")
    AndroidView(factory = {
//        MyView(it)
//        hb=HongbaoView(it)
//        hb.start()
//        hb

//        progressView= MyProgressView(it,navHostController)
//        progressView.start()
//        progressView

        MyZanView(it)
    }, modifier = Modifier.fillMaxSize())

}

